Xi-Language Reference: Mathematical Functions
- abs (Calculates the absolute value)
- acos (Calculates the arccosine)
- asin (Calculates the arcsine)
- atan (Calculates the arctangent)
- besseli0 (Calculates the modified Bessel funcion)
- besseli1 (Calculates the modified Bessel funcion)
- besselj0 (Calculates the Bessel function of the first kind)
- besselj1 (Calculates the Bessel function of the first kind)
- besselk0 (Calculates the modified Bessel function of the second kind)
- besselk1 (Calculates the modified Bessel function of the second kind)
- bessely0 (Calculates the Bessel function of the second kind)
- bessely1 (Calculates the Bessel function of the second kind)
- conj (computes the complex conjugate of the input value)
- cos (Calculates the cosine)
- cosh (Calculates the hyperbolic cosine)
- erf (Calculates the error function)
- erfc (Calculates the complementary error function)
- exp (Raises e to the power of value)
- gamma (Calculates the gamma function)
- get_seed (Returns the random number generator status)
- imag (Returns the imaginary part of complex numbers)
- log (Calculates the natural logarithm)
- log10 (Calculates the logarithm to the base 10)
- norm (Calculates the norm of the complex numbers)
- polar (complex number from its polar representation)
- pow (Raises basis to the power of exponent)
- randomn (Returns sequenze of normal distributed random numbers)
- randomu (Returns sequenze of uniformal distributed random numbers)
- real (Returns the real part of complex numbers)
- recover_seed (Recover the random number generator status )
- set_seed (Set the seed for the random number generator)
- sin (Calculates the sine)
- sinh (Calculates the hyperbolic sine)
- sqrt (Calculates the square root)
- tan (Calculates the tangent)
- tanh (Calculates the hyperbolic tangent)
Parameters
abs ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]
Parameters
acos ( value )
Types: value double/double[]
Return
double/double[]
Parameters
asin ( value )
Types: value double/double[]
Return
double/double[]
Parameters
atan ( value )
Types: value double/double[]
Return
double/double[]
Parameters
besseli0 ( value )
Types: value double/double[]
Return
double/double[]
Reference
besseli1
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
besseli1 ( value )
Types: value double/double[]
Return
double/double[]
See also
besseli0
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
besselj0 ( value )
Types: value double/double[]
Return
double/double[]
See also
besselj1
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
besselj1 ( value )
Types: value double/double[]
Return
double/double[]
See also
besselj0
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
besselk0 ( value )
Types: value double/double[]
Return
double/double[]
See also
besselk1
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
besselk1 ( value )
Types: value double/double[]
Return
double/double[]
See also
besselk0
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
bessely0 ( value )
Types: value double/double[]
Return
double/double[]
See also
bessely1
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
bessely1 ( value )
Types: value double/double[]
Return
double/double[]
See also
bessely0
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
conj ( value )
Types: value complex/complex[]
Return
complex/complex[] (complex conjugate)
Description
The function conj returns the complex conjugate of
the input value.
Example
>print(conj( (1,2 )));
<complex> (1, -2)
See also
imag,
real
Parameters
cos ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
cosh ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
erf ( value )
Types: value double/double[]
Return
double/double[]
See also
erfc
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
erfc ( value )
Types: value double/double[]
Return
double/double[]
See also
(unknown)
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
exp ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
gamma ( value )
Types: value double/double[]
Return
double/double[]
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
get_seed ( )
Return
double[] (1634 entries)
See also
set_seed,
recover_seed
Reference
This functions are based on the file zufall.f available from
ftp.netlib.org.
/pre/
*
* External documentation, "Lagged Fibonacci Random Number Generators
* for the NEC SX-3," is to be published in the International
* Journal of High Speed Computing (1994). Otherwise, ask the
* author:
*
* W. P. Petersen
* IPS, RZ F-5
* ETHZ
* CH 8092, Zurich
* Switzerland
*
* e-mail: wpp@ips.ethz.ch.
*
/pre/
Parameters
imag ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]
Description
The function imag returns the imaginary part of a complex number.
Example
>print(imag( (1,2) ));
<double> 2
Parameters
log ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
log10 ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
norm ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]
Parameters
polar ( r, phi )
Types: r double/double[]
phi double/double[]
Return
complex/complex[]
Example
>print(polar(1, ~pi));
<complex> (-1, 1.22461e-16);
Parameters
pow ( basis, exponent )
Types: basis double/double[]/complex/complex[]
exponent double/complex
Return
double/double[]/complex/complex[]
Parameters
randomn ( number )
Types: number int
Return
double[]
-1
See also
randomu
Reference
This functions are based on the file zufall.f available from
ftp.netlib.org.
/pre/
*
* External documentation, "Lagged Fibonacci Random Number Generators
* for the NEC SX-3," is to be published in the International
* Journal of High Speed Computing (1994). Otherwise, ask the
* author:
*
* W. P. Petersen
* IPS, RZ F-5
* ETHZ
* CH 8092, Zurich
* Switzerland
*
* e-mail: wpp@ips.ethz.ch.
*
/pre/
Parameters
randomu ( number )
Types: number int
Return
double[]
-1
See also
randomn
Reference
This functions are based on the file zufall.f available from
ftp.netlib.org.
/pre/
*
* External documentation, "Lagged Fibonacci Random Number Generators
* for the NEC SX-3," is to be published in the International
* Journal of High Speed Computing (1994). Otherwise, ask the
* author:
*
* W. P. Petersen
* IPS, RZ F-5
* ETHZ
* CH 8092, Zurich
* Switzerland
*
* e-mail: wpp@ips.ethz.ch.
*
/pre/
Parameters
real ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]
Parameters
recover_seed ( value )
Types: value double[]
Return
-1
See also
get_seed,
set_seed
Reference
This functions are based on the file zufall.f available from
ftp.netlib.org.
/pre/
*
* External documentation, "Lagged Fibonacci Random Number Generators
* for the NEC SX-3," is to be published in the International
* Journal of High Speed Computing (1994). Otherwise, ask the
* author:
*
* W. P. Petersen
* IPS, RZ F-5
* ETHZ
* CH 8092, Zurich
* Switzerland
*
* e-mail: wpp@ips.ethz.ch.
*
/pre/
Parameters
set_seed ( number )
Types: number int
Return
int (seed set)
See also
get_seed
Reference
This functions is based on the package SPECFUN available from
ftp.netlib.org.
/pre/
C
C Authors: W. J. Cody and L. Stoltz
C Applied Mathematics Division
C Argonne National Laboratory
C Argonne, IL 60439
/pre/
Parameters
sin ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
sinh ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
sqrt ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
tan ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
Parameters
tanh ( value )
Types: value double/double[]/complex/complex[]
Return
double/double[]/complex/complex[]
© 1995 by Bodo Junglas, Klaus Spanderen and Fabian Weis
- Last revised: Wed Jun 19 16:58:32 1996